<!DOCTYPE html>
<style>
::-webkit-scrollbar { display: none; }
</style>
Tests scroll offset of contents with subsequence caching. Passes if no red.
<div id="container" style="position: absolute; width: 300px; height: 200px; overflow: scroll; backface-visibility: hidden">
  <div id="content1" style="position: absolute; top: 0; left: 0; width: 100px; height: 400px; background-color: red"></div>
  <div id="content2" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red"></div>
</div>
<script src="../../../resources/run-after-layout-and-paint.js"></script>
<script>
onload = function() {
  runAfterLayoutAndPaint(function() {
    content1.style.backgroundColor = 'green';
    container.scrollTop = 150;
  }, true);
};
</script>

